<{include file="admin:common/header.html"}>
<div class="page-title">
	<table width="100%" align="center" cellpadding="0" cellspacing="0" >
		<tr>
			<td width="30" align="right"><img src="<{$pager.url}>/images/main-h5-ico.gif" alt="" /></td>
			<th><{$MOD.title}></th>
			<td align="right">
				<{link ctl="data/city:so" load="mini:搜索城市" width="mini:400" class="button" title="搜索"}> &nbsp; &nbsp;
				<{link ctl="data/city:create" class="button" title="添加"}>
			</td>
			<td width="15"></td>
		</tr>
	</table>
</div>
<div class="page-data">	
	<form id="items-form">
    <table width="100%" border="0" cellspacing="0" class="table-data table">
    <tr><th class="w-100">ID</th><th class="w-150">省份</th><th class="w-150">城市</th><th class="w-100">拼音</th><th>模板</th><th class="w-100">排序</th><th class="w-100">状态</th><th class="w-150">操作</th></tr>
    <{foreach $items as $item}>
    <tr>
		<td><label><input type="checkbox" value="<{$item.city_id}>" name="city_id[]" CK="PRI"/><{$item.city_id}><label></td>
		<td><{$item.province_name}></td><td><{$item.city_name}></td><td><{$item.pinyin}></td><td><{$themes[$item.theme_id]|default:'默认模板'}></td>
        <td><{$item.orderby}></td><td><{if $item.audit}>开启<{else}>关闭<{/if}></td>
		<td>
			<{link ctl="data/city:edit" args=$item.city_id title="修改" class="button"}>
			<{link ctl="data/city:delete" args=$item.city_id act="mini:删除" confirm="mini:确定要删除吗？" title="删除" class="button"}>
		</td>
	</tr>
    <{/foreach}>
    </table>
	</form>
	<div class="page-bar">
		<table>
			<tr>
			<td class="w-100"><label><input type="checkbox" CKA="PRI"/>&nbsp;&nbsp;全选</label></td>
			<td colspan="10" class="left"><{link ctl="data/city:delete" type="button" submit="mini:#items-form" confirm="mini:确定要批量删除选中的内容吗?" priv="hide" value="批量删除"}></td>
			<td class="page-list"><{$pager.pagebar}></td>
		</tr>
		</table>
	</div>
</div>
<{include file="admin:common/footer.html"}>